package com.tourism.website.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tourism.website.comment.entity.Comment;
import com.tourismwebsite.comment.dto.CommentDTO;
import com.tourismwebsite.comment.query.CommentQuery;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyc
 * @since 2024-06-13
 */
public interface ICommentService extends IService<Comment> {
    /**
     *查询存在的评论
     */
    List<CommentDTO> queryNotDelComments(CommentQuery commentQuery);
    /**
     * 添加评论
     */
    boolean saveComment(CommentQuery commentQuery);
    /**
     * 删除当前用户评论
     */
    boolean deleteComment(CommentQuery commentQuery);

}
